<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel app\models\search\LinkSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '链接管理';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="nav-tabs-custom">
    <?= $this->render('_tab') ?>
    <div class="box">
        <div class="box-body">
            <?php Pjax::begin(); ?>                            <?= GridView::widget([
                'dataProvider' => $dataProvider,
                'tableOptions' => ['class'=>'table table-bordered table-hover dataTable'],
                /* 配置分页样式 */
                'pager' => [
                'options' => ['class'=>'pagination','style'=>'visibility: visible;'],
                'nextPageLabel' => '下一页',
                'prevPageLabel' => '上一页',
                'firstPageLabel' => '第一页',
                'lastPageLabel' => '最后页'
                ],
                'filterModel' => $searchModel,
        'columns' => [
                ['class' => 'app\core\lib\CheckboxColumn'],

                            'id',
            'type',
            'title',
            'url:url',
            'logo',
            // 'description',
            // 'sort',
            // 'hits',
            // 'created_at',
            // 'updated_at',
            // 'status',

                ['class' => 'app\core\lib\ActionColumn'],
                ],
                ]); ?>
                        <?php Pjax::end(); ?>        </div>
    </div>
</div>
<?php $delUrl = \yii\helpers\Url::toRoute(['delete']);$this->render('@app/modules/admin/views/layouts/modal-delete', ['delUrl'=>$delUrl]);?>